package com.lhq.business.service;

import com.lhq.business.domain.Book;

import java.util.List;

/**
 *  排行榜相关
 * @author lhq
 * @version 1.0
 * @date 2024/7/29 9:15
 */
public interface IRankingService {
    /**
     * 获取排行榜书籍列表
     * @author lhq
     * @date 2024/9/10 16:00
     * @version 1.0
     */
    List<Book>  getTopRankingList(String rankingType, int size);
    /**
     *  添加书籍到排行榜
     * @author lhq
     * @date 2024/9/10 16:22
     * @version 1.0
     */
     Boolean addBook(String rankingType, String bookId, double addScore);

    Double incrementScore(String rankingType, String bookId, double addScore);
}
